﻿using Newtonsoft.Json;

namespace Missbot.Model.MsgInfos
{
    public class NoteInfo : RootInfo
    {
        [JsonProperty("body")]
        public ChannelBody_Note Body { get; set; }
    }

    public class ChannelBody_Note : ChannelBody
    {
        [JsonProperty("body")]
        public NoteBody Body { get; set; }
    }

    public class NoteBody
    {
        [JsonProperty("id")]
        public string ID { get; set; }
        
        [JsonProperty("text")]
        public string Text { get; set; }
        
        [JsonProperty("replyId")]
        public string ReplyID { get; set; }
        
        [JsonProperty("renoteId")]
        public string RenoteID { get; set; }
        
        [JsonProperty("user")]
        public InstanceUser User { get; set; }
        
        [JsonProperty("files")]
        public InstanceFile[] Files { get; set; }
        
        [JsonProperty("tags")]
        public string[] Tags { get; set; }
    }
}